package com.AuthServer.pojo.form;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class PasswordForm {
    @NotNull(message = "工号不能为null")
    @NotEmpty(message = "工号不能为空")
    @Size(min = 10, max = 10, message = "不是有效工号")
    private String userId;
    // @NotNull(message = "邮箱不能为null")
    // @NotEmpty(message = "邮箱不能为空")
    @Email(message = "不是有效的邮箱")
    private String email;
    @NotNull(message = "密码不能为null")
    @NotEmpty(message = "密码不能为空")
    @Size(min = 6, max = 18, message = "密码在6-14位之间")
    private String password;
    private String bindEmailToken;
    private String verifyEmailToken;
}
